﻿package de.broud.utils{	public class StringFormatter	{			/**		 * Pad a string to a certain length with another string		 *		 * @param    str		 * @param    count		 * @param    pad		 * @param    side		 */		public static function strPad(str:String, count:int, pad:String, side:String = "left"):String		{            while (str.length < count)            {                 if (side == "right")                {                    str = str + pad;                 }                else if (side == "both")                 {                    str = pad + str + pad;                 }				else				{					str = pad + str; 				}            }             return str;		}		}}